<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html"  
      xmlns:p="http://primefaces.org/ui">
    <head>
        <title>TODO supply a title</title>
    </head>
    <body>
        <ui:composition >

            <h:form id="formAutocomplete">
                <p:autoComplete id="buscar" styleClass="searchBox" size="30" 
                                value="#{request_autocompleteFind.selected}"
                                completeMethod="#{request_autocompleteFind.autoComplete}"
                                var="p" 
                                itemLabel="" 
                                itemValue="#{p}" 
                                converter="request_autocompleteFind"
                                >

                    <p:column styleClass="acID">
                        ##{p.requestBeans.id}
                    </p:column>
                    <p:column> 
                        <h:panelGroup layout="block" class="acTitle">#{p.requestBeans.carrera}</h:panelGroup>
                        <div>#{p.universityBeans.nombre}</div> 
                        <div>#{p.facultyBeans.nombre}</div>
                    </p:column>
                    <p:ajax event="itemSelect" oncomplete="window.location.reload(true);" update=":content :personaActual"/>
                </p:autoComplete>

                <p:watermark for="buscar" value="#{autocompleteLabel.watermark}"/>

            </h:form>
        </ui:composition>
    </body>
</html>
